#include "CardType.h"
#include "CardTypeData.h"
#include "PokerData.h"
#include <iostream>

HighCard::HighCard() {
}

HighCard::~HighCard() {
}

CardTypeData HighCard::getCardType(const PokerData & data) const{
  vector<Poker> pokers = data.getPokers();
  if (pokers.size() > 4) {
    PokerData::sortData(pokers);
    CardTypeData cardTypeData;
    cardTypeData.type = CardType::HighCard;
    cardTypeData.first = pokers.at(0).value;
    cardTypeData.second = pokers.at(1).value;
    cardTypeData.third = pokers.at(2).value;
    cardTypeData.fourth = pokers.at(3).value;
    cardTypeData.fifth = pokers.at(4).value;
    return cardTypeData;
  }
  CardTypeData cardTypeData;
  cardTypeData.type = CardType::HighCard;
  return cardTypeData;
}

const CardType * HighCard::getNextType() const {
  return NULL;
}
